/*
 * lectureVideo.h
 *
 *  Created on: 6 sept. 2010
 *      Author: Administrateur
 */

#ifndef LECTUREVIDEO_H_
#define LECTUREVIDEO_H_

#include <QtCore>
#include <QtGui>
#include "highgui.h"
#include "cxcore.h"
#include "cv.h"

class lectureVideo
{
public:
	lectureVideo();
	~lectureVideo();

	void initialize(QString filename);
	void preparing();
	void processing();

	QImage getImage();
	QImage getPreviewImage();
	bool getStop();

private:

	QImage IplToQImage(const IplImage *newImage);
	int currentFrame;
	int numberFrame;
	bool stop;
	IplImage *currentImage;
	IplImage *previewImage;
	CvCapture * currentCapture;


};


#endif /* LECTUREVIDEO_H_ */
